import React from 'react'
import { HashRouter as Router } from 'react-router-dom'
//引入我们封装的CompileRouter罪案
import  routes from "./utils/compile-router"
//引入在1中定义的路由配置数据
import RouterView from "./router"
class App extends React.Component {
    render() {
        return (
            <Router>
                {/*当成是vue-router的视图组件 我们需要将路由配置数据传入*/}
                <RouterView routes={routes} />
            </Router>
        )
    }
}

export default App;
